import request from "./request"

//携带参数的get请求方法
function getList(teamId: any) {
    return request({
       'url': 'teamMember/getList?teamId=' + teamId,
       'method': 'get'
   })
}

function memberSave(data: any){
    return request({
      'url':'teamMember/save',
      'method': 'post',
      data
    })
}

function memberDelete(data: any){
    return request({
       'url' : 'teamMember/delete',
       'method' : 'post' ,
       data            //后台的返回数据
    })
}


export{
    getList,
    memberSave,
    memberDelete
}